<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>
    彩票机界面查看
  </title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
 <Link rel="Shortcut Icon" href="/favicon.ico" />
 <script>
     var loadImageDelay = 2000;
     var img,defaultIp="192.168.1.109";
     function loadImage(){
        if(img==null){
            if(location.href.indexOf("ip=")==-1){
                ip=defaultIp;
            }else{
                ip=location.href.split("ip=")[1].split("&")[0];
            }
            if(!/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(ip)){
                ip=defaultIp;
            }
            document.getElementById("title").innerText = "终端机IP : "+ip;
            img = document.getElementById("img");
        }else{
            img.src = img.src.split("t=")[0]+"t="+(+new Date)+"&ip="+ip;
        }
        setTimeout(loadImage,loadImageDelay);
     }
     setTimeout(loadImage,loadImageDelay);
 </script>
</head>
<body>
<h1 id="title"></h1>
<div style="margin: auto;text-align: center;vertical-align: middle; width: 100%;height: 100%;" id="divImg">
    <img src="/abc1.png?t=1" alt="终端机的界面" id="img" /> 
</div>
</body>
</html>